//
//  UIColor+Extension.swift
//  glzbowei
//
//  Created by 高伦展 on 2018/3/2.
//  Copyright © 2018年 glz. All rights reserved.
//

import UIKit

extension UIColor{
    /// 随机颜色
    class func randomColor() -> UIColor{
        let r = CGFloat(arc4random() % 256) / 255.0
        let g = CGFloat(arc4random() % 256) / 255.0
        let b = CGFloat(arc4random() % 256) / 255.0
        
        return UIColor(red: r, green: g, blue: b, alpha: 1.0)
    }
}
